package com.zyj.eps.service;

import com.zyj.eps.mapper.NewsMapper;
import com.zyj.eps.pojo.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author super
 * @date 2022/4/6 17:08
 */
@Service
public class NewsServiceImpl implements NewsService{
    @Autowired
    private NewsMapper newsMapper;
    @Override
    public List<News> getAllNews() {
        return newsMapper.getAllNews();
    }

    @Override
    public News getNewsByTitle(String title) {
        return newsMapper.getNewsByTitle(title);
    }
}
